package repo

import (
	"album/model"
	"context"
	"listenboos-common/db"
)

// AlbumInfoRepo 用户接口 不关注下方实现
type AlbumInfoRepo interface {
	GetAllCategoryList(ctx context.Context) (albums []*model.AlbumInfo, err error)
	Save(ctx context.Context, conn db.DBConn, data *model.AlbumInfo) (int64, error)
	FindByUserId(ctx context.Context, id int64, num string, size string) (albums []*model.AlbumInfo, err error)
	// Save(ctx context.Context, user *model.AlbumInfo) error
	FindAlbumByIdAndUserId(ctx context.Context, albumId int64, userId int64) (album *model.AlbumInfo, err error)
	DeleteAlbumInfo(ctx context.Context, conn db.DBConn, albumId int64, userId int64) error
	FindAlbumListByUserId(ctx context.Context, id int64) ([]*model.AlbumInfo, error)
	InitBloom()
	FindAlbumById(ctx context.Context, id int64) (album *model.AlbumInfo, err error)
}
